

// --------------------------------------------------------------------------------------
//                                 Appels aux services
// --------------------------------------------------------------------------------------
function getExport() {

     var theName  = sessionStorage.getItem('theName');
	 var thePass  = sessionStorage.getItem('thePass');
	 var TheTable =  $.trim($("#select_table").val());
	 	 
	console.log(URLServiceExport + '/export.php?name='+theName+'&pass='+thePass+'&table='+TheTable);
	
	window.location.href = URLServiceExport + '/export.php?name='+theName+'&pass='+thePass+'&table='+TheTable;
}

$("#export_button").click(function(e){
    e.preventDefault();
    getExport();
    return false;
});
